﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

namespace Entities
{
    public class Column
    {
        /// <summary>
        /// Name Of Column
        /// </summary>
        public string Name { set; get; }
        /// <summary>
        /// Data type of column data.
        /// </summary>
        public string Type1 { get; set; }
        /// <summary>
        /// A bool flag for Column.
        /// </summary>
        public bool IsImported { set; get; }

        public static Column DeepCopy(Column Source)
        {
            Column Col = new Column();
            StringBuilder sb = new StringBuilder(Source.Name);
            Col.Name = sb.ToString();
            sb.Remove(0, sb.Length);

            sb.Append(Source.Type1);

            Col.Type1 = sb.ToString();

            Col.IsImported = Source.IsImported;
            return Col;
        }

    }
}
